Optimal. Leaf size=82 \[ \frac {(2 a+b) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{2 a^{3/2} (a+b)^{3/2} d}-\frac {b \sinh (c+d x)}{2 a (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4232, 393, 211}
\begin {gather*} \frac {(2 a+b) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{2 a^{3/2} d (a+b)^{3/2}}-\frac {b \sinh (c+d x)}{2 a d (a+b) \left (a \sinh ^2(c+d x)+a+b\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 393
Rule 4232
Rubi steps
\begin {align*} \int \frac {\text {sech}(c+d x)}{\left (a+b \text {sech}^2(c+d x)\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1+x^2}{\left (a+b+a x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=-\frac {b \sinh (c+d x)}{2 a (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )}+\frac {(2 a+b) \text {Subst}\left (\int \frac {1}{a+b+a x^2} \, dx,x,\sinh (c+d x)\right )}{2 a (a+b) d}\\ &=\frac {(2 a+b) \tan ^{-1}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{2 a^{3/2} (a+b)^{3/2} d}-\frac {b \sinh (c+d x)}{2 a (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 124, normalized size = 1.51 \begin {gather*} \frac {\left (2 a^2+3 a b+b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )-\sqrt {a} b \sqrt {a+b} \sinh (c+d x)+a (2 a+b) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right ) \sinh ^2(c+d x)}{a^{3/2} (a+b)^{3/2} d (a+2 b+a \cosh (2 (c+d x)))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(200\) vs.
\(2(70)=140\).
time = 2.15, size = 201, normalized size = 2.45
method | result | size |
derivativedivides | \(\frac {\frac {\frac {b \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \left (a +b \right )}-\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{a \left (a +b \right )}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b}+\frac {\left (2 a +b \right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{a \left (a +b \right )}}{d}\) | \(201\) |
default | \(\frac {\frac {\frac {b \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \left (a +b \right )}-\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{a \left (a +b \right )}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b}+\frac {\left (2 a +b \right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{a \left (a +b \right )}}{d}\) | \(201\) |
risch | \(-\frac {{\mathrm e}^{d x +c} b \left ({\mathrm e}^{2 d x +2 c}-1\right )}{a d \left (a +b \right ) \left (a \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}+4 b \,{\mathrm e}^{2 d x +2 c}+a \right )}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right ) d}-\frac {b \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right ) d a}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right ) d}+\frac {b \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a +b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right ) d a}\) | \(308\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 932 vs.
\(2 (70) = 140\).
time = 0.40, size = 1856, normalized size = 22.63 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}{\left (c + d x \right )}}{\left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\mathrm {cosh}\left (c+d\,x\right )\,{\left (a+\frac {b}{{\mathrm {cosh}\left (c+d\,x\right )}^2}\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________